package cn.lhn.ridersclub.service;

import cn.lhn.ridersclub.dto.AccountDto;
import cn.lhn.ridersclub.entity.Account;

import java.util.List;

public interface AccountService {

    AccountDto registerAccount(String email, String code, String gender, String nickname);

    AccountDto closeAccount(String email, String code);

    AccountDto getAccount(Long id);

    AccountDto getAccount(String nickname);

    List<AccountDto> getAccounts(String nickname);

    void updateAccount(Account account);

    AccountDto toAccountDto(Account account);

    Account toAccount(AccountDto dto);
}
